using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmAprAppraisalDtls")]
    public class AppraisalDtls
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "AprDtlsId", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public int AprDtlsId { get; set; }

        [ForeignKey("AprAppraisals")]
		[DataMember, Display(Name = "AprId", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public Nullable<int> AprId { get; set; }

        [ForeignKey("Employee")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public Nullable<int> EmpId { get; set; }

		//[ForeignKey("AprForm")]
		[DataMember, Display(Name = "AprFormId", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public Nullable<int> AprFormId { get; set; }

		[DataMember, Display(Name = "Score", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public Nullable<decimal> Score { get; set; }

        [ForeignKey("PrmSubScoreLevels")]
		[DataMember, Display(Name = "ScoreLevelId", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public Nullable<int> ScoreLevelId { get; set; }

		[ForeignKey("AprJobSite")]
		[DataMember, Display(Name = "AprJobSiteId", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public Nullable<int> AprJobSiteId { get; set; }

		[DataMember, Display(Name = "Promote", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public Nullable<int> Promote { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.AprAppraisalDtlsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual Appraisal AprAppraisals { get; set; }

        public virtual Employee Employee { get; set; }

		// public virtual AprForm AprForm { get; set; }

        public virtual PrmSubScoreLevel PrmSubScoreLevels { get; set; }

		public virtual HRM.JobSite AprJobSite { get; set; }

    }
}